/*=============================================================================
#     FileName: nyancosensei.css
#       Author: Dewey
#        Email: fordewey@gmail.com
#      Version: 0.0.1
#     Licenses: MIT
#   LastChange: 2012-04-10 23:45:27
#     Describe: 《夏目友人帐》中的猫咪老师，纯CSS3绘制
#                -----chrome 18; safari 5.1.4 中有完整的观赏效果
#                -----ie 10; firefox 10/11 中可正常显示，但无动画
#                -----opera 11.61中猫咪背部色块无法被圆角的外框遮盖，无动画
=============================================================================*/
.nyancosensei {
    height: 480px;
    width: 800px;
    position: absolute;
    padding: 0;
    background: #80DEAA;
    background-image: -webkit-linear-gradient(top, #80DEAA, #FFFFFF);
    background-image: -moz-linear-gradient(top, #80DEAA, #FFFFFF);
    background-image: -ms-linear-gradient(top, #80DEAA, #FFFFFF);
    background-image: -o-linear-gradient(top, #80DEAA, #FFFFFF);
    z-index: -10;
    left: 50%;
    margin: 0 0 0 -400px;
}
.nyancosensei .head {
    height: 365px;
    width: 360px;
    margin: 58px 0 0 75px;
    -webkit-transform: rotate(30deg);
    -moz-transform: rotate(30deg);
    -o-transform: rotate(30deg);
    -ms-transform: rotate(30deg);
    position: absolute;
    z-index: 30;
}
.nyancosensei .head .face .spot.orange {
    height: 235px;
    width: 207px;
    background: #F4A451;
    position: static;
    overflow: hidden;
    margin: -3px 0 0 69px;
    -webkit-transform: rotate(12deg);
    -moz-transform: rotate(12deg);
    -o-transform: rotate(12deg);
    -ms-transform: rotate(12deg);
    border-radius: 268px 155px 255px 205px / 323px 264px 248px 189px;
}
.nyancosensei .head .face .spot.gray {
    height: 235px;
    width: 118px;
    background: #DEDBD2;
    position: static;
    border-radius: 71px 303px 400px 22px / 117px 464px 504px 56px;
    margin-left: 90px;
}
.nyancosensei .head .face {
    width: 350px;
    height: 360px;
    bottom: 0;
    position: static;
    border-radius: 211px 160px 160px 170px / 233px 200px 185px 93px;
    border: 2px solid;
    z-index: 31;
    background: #FFFFFF;
}
.nyancosensei .head .ear{
    width: 0;
    height: 0;
    position: absolute;
    border-left: 70px solid transparent;
    border-right: 28px solid transparent;
    border-bottom: 89px solid #FFFFFF;
    z-index: 32;
}
.nyancosensei .head .ear.left {
    -webkit-transform: rotate(-60deg);
    -moz-transform: rotate(-60deg);
    -o-transform: rotate(-60deg);
    -ms-transform: rotate(-60deg);
}
.nyancosensei .head .ear.right {
    -webkit-transform: rotate(55deg);
    -moz-transform: rotate(55deg);
    -o-transform: rotate(55deg);
    -ms-transform: rotate(55deg);
    right: -21px;
}
.nyancosensei .head .face .eyePart {
    width: 100px;
    height: 100px;
    float: left;
}
.nyancosensei .head .face .eyePart.left{
    margin: -22px 0px 0px 13px;
    -webkit-transform: rotate(10deg);
    -moz-transform: rotate(10deg);
    -o-transform: rotate(10deg);
    -ms-transform: rotate(10deg);
}
.nyancosensei .head .face .eyePart.right{
    margin-left: 80px;
    -webkit-transform: rotate(10deg);
    -moz-transform: rotate(10deg);
    -o-transform: rotate(10deg);
    -ms-transform: rotate(10deg);
}
.nyancosensei .head .face .eyePart .eye {
    background: #000000;
    height: 9px;
    width: 84px;
    border-radius: 5px;
}
.nyancosensei .head .face .eyePart .spotBesideEye {
    height: 61px;
    width: 100%;
    padding-top: 5px;
}
.nyancosensei .head .face .eyePart .spotBesideEye .spot.left {
    width: 0;
    height: 0;
    margin-top: 9px;
    border-left: 21px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 8px solid #FF0800;
    -webkit-transform: rotate(-132deg);
    -moz-transform: rotate(-132deg);
    -o-transform: rotate(-132deg);
    -ms-transform: rotate(-132deg);
}
.nyancosensei .head .face .eyePart .spotBesideEye .spot.right {
    width: 0;
    height: 0;
    margin: 9px 0 0 76px;
    border-left: 17px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 8px solid #FF0800;
    -webkit-transform: rotate(-224deg);
    -moz-transform: rotate(-224deg);
    -o-transform: rotate(-224deg);
    -ms-transform: rotate(-224deg);
}
.nyancosensei .head .face .eyePart .spotBesideEye.left {
    margin-left: -10px;
}
.nyancosensei .head .face .eyePart .spotUnderEye {
    height: 30px;
    width: 84px;
}
.nyancosensei .head .face .eyePart .spotUnderEye .spot {
    width: 0;
    height: 0;
    margin-top: 5px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 6px solid #FF0800;
    -webkit-transform: rotate(-164deg);
    -moz-transform: rotate(-164deg);
    -o-transform: rotate(-164deg);
    -ms-transform: rotate(-164deg);
}
.nyancosensei .head .face .eyePart .spotUnderEye .spot.right {
    margin-left: 62px;
}
.nyancosensei .head .face .mouthPart {
    height: 56px;
    width: 68px;
    position: absolute;
    margin: 69px 0 0 87px;
    padding-left: 5px;
    -webkit-transform: rotate(10deg);
    -moz-transform: rotate(10deg);
    -o-transform: rotate(10deg);
    -ms-transform: rotate(10deg);
}
.nyancosensei .head .face .mouthPart .open {
    height: 12px;
    width: 20px;
    z-index: 33;
    border: 1px solid;
    border-radius: 0px 0px 26px 28px / 0px 0px 33px 32px;
    margin: 23px 0 0 20px;
    position: relative;
    background: #EA6A51;
}
.nyancosensei .head .face .mouthPart .pair {
    width: 29px;
    height: 20px;
    border: 1px solid;
    background: white;
    position: relative;
    float: left;
    margin-top: 11px;
    border-radius: 27px 18px 11px 25px / 15px 13px 15px 18px;
    z-index: 34;
}
.nyancosensei .head .face .mouthPart .pair .cover {
    height: 16px;
    width: 20px;
    background: #FFFFFF;
    margin: -1px;
}
.nyancosensei .head .face .mouthPart .pair .cover.right {
    margin-left: 5px;
}
.nyancosensei .head .face .mouthPart .coverMid {
    width: 8px;
    height: 5px;
    margin: 18px 0 0 27px;
    z-index: 34;
    position: absolute;
    background: #FFFFFF;
}
.nyancosensei .body {
    height: 415px;
    width: 470px;
    background: #FFFFFF;
    z-index: 20;
    overflow: hidden;
    position: static;
    margin: 35px 0 0 260px;
    border-radius: 1400px 1445px 1168px 1262px / 722px 1233px 1171px 563px;
    border: 2px solid;
    box-shadow: 0 13px 36px gray;
    -webkit-box-shadow: 0 13px 36px gray;
}
.nyancosensei .body .spot.orange {
    width: 470px;
    height: 200px;
    background: #F4A451;
    position: static;
}
.nyancosensei .body .spot.gray {
    width: 345px;
    height: 245px;
    background: #DEDBD2;
    position: static;
    margin: -111px 0 0 125px;
    border-radius: 515px 405px 521px 320px / 133px 321px 305px 110px;
}
.nyancosensei .tail {
    height: 135px;
    width: 145px;
    position: absolute;
    right: 0px;
    top: 100px;
    background: #FFFFFF;
    border-radius: 100px 160px;
    border: 2px solid;
    z-index: -10;
}
.nyancosensei .bubble {
    position: absolute;
    height: 70px;
    width: 70px;
    opacity: 0.6;
    margin: 51px 0 0 40px;
    background: #9CF9FF;
    border-radius: 70px;
    border: 2px solid #65C5CC;
    -webkit-animation: 'puff' 2.5s linear infinite;
}
.nyancosensei .bubble .light{
    width: 20px;
    height: 16px;
    float: right;
    margin: 6px 17px 0 0;
    background: #FFFFFF;
    border-radius: 20px;
}
@-webkit-keyframes puff {
    0% {
	width: 70px;
	height: 70px;
	margin: 100px 0 0 20px;
    }
    22% {
	width: 90px;
	height: 90px;
	margin: 50px 0 0 20px;
    }
    40% {
	width: 100px;
	height: 100px;
	margin: 20px 0 0 20px;
    }
    70% {
	width: 90px;
	height: 90px;
	margin: 50px 0 0 20px;
    }
    100% {
	width: 70px;
	height: 70px;
	margin: 100px 0 0 20px;
    }
}
